import request from '@/utils/request'

// 获取收费标准
export function getAmount(duration) {
  return request({
    url: `/system/amount/get/${duration}`,
    method: 'get'
  })
}

export function getByHours(hours) {
  return request({
    url: `/system/amount/getByHours/${hours}`,
    method: 'get'
  })
}

// 设置收费标准
export function setAmount(duration, amount) {
  return request({
    url: `/system/amount/set/${duration}`,
    method: 'post',
    params: {
      amount: amount
    }
  })
}
